package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * QuestionSId entity. @author MyEclipse Persistence Tools
 */

public class QuestionSId implements java.io.Serializable {

	// Fields

	private Integer questionSid;
	private String questionSname;
	private String uploads;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public QuestionSId() {
	}

	/** full constructor */
	public QuestionSId(Integer questionSid, String questionSname,
			String uploads, Timestamp createTime) {
		this.questionSid = questionSid;
		this.questionSname = questionSname;
		this.uploads = uploads;
		this.createTime = createTime;
	}

	// Property accessors

	public Integer getQuestionSid() {
		return this.questionSid;
	}

	public void setQuestionSid(Integer questionSid) {
		this.questionSid = questionSid;
	}

	public String getQuestionSname() {
		return this.questionSname;
	}

	public void setQuestionSname(String questionSname) {
		this.questionSname = questionSname;
	}

	public String getUploads() {
		return this.uploads;
	}

	public void setUploads(String uploads) {
		this.uploads = uploads;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof QuestionSId))
			return false;
		QuestionSId castOther = (QuestionSId) other;

		return ((this.getQuestionSid() == castOther.getQuestionSid()) || (this
				.getQuestionSid() != null
				&& castOther.getQuestionSid() != null && this.getQuestionSid()
				.equals(castOther.getQuestionSid())))
				&& ((this.getQuestionSname() == castOther.getQuestionSname()) || (this
						.getQuestionSname() != null
						&& castOther.getQuestionSname() != null && this
						.getQuestionSname()
						.equals(castOther.getQuestionSname())))
				&& ((this.getUploads() == castOther.getUploads()) || (this
						.getUploads() != null
						&& castOther.getUploads() != null && this.getUploads()
						.equals(castOther.getUploads())))
				&& ((this.getCreateTime() == castOther.getCreateTime()) || (this
						.getCreateTime() != null
						&& castOther.getCreateTime() != null && this
						.getCreateTime().equals(castOther.getCreateTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getQuestionSid() == null ? 0 : this.getQuestionSid()
						.hashCode());
		result = 37
				* result
				+ (getQuestionSname() == null ? 0 : this.getQuestionSname()
						.hashCode());
		result = 37 * result
				+ (getUploads() == null ? 0 : this.getUploads().hashCode());
		result = 37
				* result
				+ (getCreateTime() == null ? 0 : this.getCreateTime()
						.hashCode());
		return result;
	}

}